<?php
defined('_JEXEC') or die('Restricted access');

$weblinkparams = $weblinkitems['params'];
unset($weblinkitems['params']);

if(!empty($weblinkparams['title'])):?><h3 class="weblinkinfo_title<?php echo $weblinkparams['suffix']; ?>"><?php echo $weblinkparams['title']; ?></h3><?php endif;?>
<ul class="weblinkinfo<?php echo $weblinkparams['suffix']; ?>">
<?php foreach($weblinkitems as $links):
	$hits = '';
	if($weblinkparams['hit']): $hits = '<small>&nbsp;('. $links->hits. ')</small>'; endif;?>
	<li>
	<a href="<?php echo $links->link; ?>" title="<?php echo $links->title; ?>" target="<?php echo $weblinkparams['target']; ?>">
	<?php echo (isset($links->thumbnail)? $links->thumbnail: ''). $links->title. $hits; ?>
	</a>
	<?php if($weblinkparams['showdesc'] && !empty($links->description)):?>
	<br /><small><?php echo $links->description;?></small>
	<?php endif;?>
	</li>
<?php endforeach;?>
</ul>
<?php
unset($weblinkparams);
unset($weblinkitems);